<template>
    <div class="HOME">
        <h1>
            欢迎访问智慧党建云平台
        </h1>
        <!-- <HelloWorld /> -->
    </div>
</template>

<script setup lang="ts">
// import {getroutes,getuserlist} from '@/request/routes'
onMounted(() => {
    const router = useRouter();
    const uid = router.currentRoute;
    getroute()
    
})
const getroute =async () =>{
    
    // var {userlist} =await getroutes();
    // var getuser =await getuserlist();
    // var getuser =await getuserlist();
    // console.log(getuser);
    // console.log(userlist);
    // var a = userlist[0].route_list;
    // const userlistdata = [];
    // for (let i = 0; i < userlist.length; i++) {
    //     var json = eval("(" +  userlist[i].route_list + ")");//第二种
    //     userlistdata.push(json)
    // }
    // var json2 = eval("(" +  userlist[0].route_list + ")");//第二种
    // console.log("userlistdata",userlistdata);
    
    // getroutes().then(res=>{
    //     console.log(res);
        
    // })

}

</script>

<style lang="scss" scoped>
h1 {
    text-align: center;
    font-size: 60px;
    color: $colorprimary;
    position: relative;
    // top: 30%;
    // margin-top: 10%;
}
.HOME{
  
//     justify-content: center;
//     margin:  0 auto;
padding-top: 20%;
//     text-align: center;
}
</style>